import mock from 'mockjs';
import homeApi from './mockServerData/home.js'
import userApi from './mockServerData/user.js'

mock.mock('/home/getData', homeApi.getStatisticalData); //字符串方式
mock.mock(/user\/add/, 'post', userApi.createUser); //正则方式
mock.mock(/user\/edit/, 'post', userApi.updateUser); 
mock.mock(/user\/getUser/, 'get', userApi.getUserList); 
mock.mock(/user\/del/, 'get', userApi.deleteUser); 